package com.itheima.web;

import com.itheima.dao.data;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.sql.DataSource;

public class App {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
//        DataSource bean = (DataSource) context.getBean("app");
//        System.out.println(bean);
        data data = (com.itheima.dao.data) context.getBean("data");
        data.ses();
    }
}
